package com.worldcup.model.enums;

import java.util.HashMap;
import java.util.Map;

/**
 * @author duwan.zq
 * @date 2018/06/02
 */
public enum TravelEventTypeEnum {

    /** 点赞 **/
    TOP(1),

    /** 查看 **/
    VIEW(2),

    /** 约伴 **/
    DATE(3);

    private int value;

    private static Map<Integer, String> NOTICE_EVENT_MAP = new HashMap(4);

    static{
        NOTICE_EVENT_MAP.put(TravelEventTypeEnum.TOP.value, "{0}最近给您点赞了");
        NOTICE_EVENT_MAP.put(TravelEventTypeEnum.VIEW.value, "{0}最近看了您");
        NOTICE_EVENT_MAP.put(TravelEventTypeEnum.DATE.value, "{0}想约您一起看球");
    }

    TravelEventTypeEnum(int value) {
        this.value = value;
    }

    public static String getNoticeFormatter(Integer value){
        return NOTICE_EVENT_MAP.get(value);
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }
}
